const { Model, DataTypes } = require('sequelize');

const sequelize = require('./database');

class Home extends Model {}

Home.init({
  id: {
    type: DataTypes.INTEGER,
    allowNull: false,
    primaryKey:true,
    autoIncrement:true
  },
  name: {
    type: DataTypes.STRING,
    allowNull: false,
    unique: true
  },
  defaultIcon: {
    type: DataTypes.STRING,
    allowNull: false
  },
  selectIcon: {
    type: DataTypes.STRING,
    allowNull: false
  },
  img: {
    type: DataTypes.STRING,
    allowNull: true
  },
  process: {
    type: DataTypes.STRING,
    allowNull: true
  }
}, {
  sequelize,
  modelName: 'home'
});



module.exports = Home;